package com.liljhu30.microdianping.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.liljhu30.microdianping.dto.Result;
import com.liljhu30.microdianping.entity.Shop;

/**
 * @author LilJHu
 * @create 2023/12/15
 * @desc 店铺服务层
 **/
public interface IShopService extends IService<Shop> {

    /**
     * 根据id查询商铺详细信息
     *
     * @param id
     * @return
     */
    Result queryById(Long id);

    /**
     * 更新商铺信息
     *
     * @param shop
     * @return
     */
    Result update(Shop shop);

    /**
     * 根据商铺类型分页查询商铺信息
     *
     * @param typeId
     * @param current
     * @param x
     * @param y
     * @return
     */
    Result queryShopByType(Integer typeId, Integer current, Double x, Double y);

}
